*** tcp close for sock 81, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 026 bytes ***. 	30.12.2021 	01:14:29 	lx 	(5. Tcp Server 2)

closing socket '81'. 	30.12.2021 	01:14:29 	lx 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	01:33:23 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	01:33:23 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	01:33:23 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

Starting to stop tcp server 2, max. delay 1,7 seconds... 	30.12.2021 	01:33:43 	_lx_SERVER 	(10. tbl_ 9)

*** tcp close for sock 79, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	30.12.2021 	01:33:43 	lx 	(5. Tcp Server 2)

closing socket '79'. 	30.12.2021 	01:33:43 	lx 	(5. Tcp Server 2)

*** tcp close for sock 80, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	30.12.2021 	01:33:43 	lx 	(5. Tcp Server 2)

closing socket '80'. 	30.12.2021 	01:33:43 	lx 	(5. Tcp Server 2)

 -- Server statistics --
answerCount:          24
poll.fd_count:        1
pollCount:            108336
pollInCount:          26
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  4/3
totalBytesReceived:   23702
totalBytesSent:       290887. 	30.12.2021 	01:33:43 	lx 	(5. Tcp Server 2)

warning: socket type 'number' is not a table, socket number: 81
. 	30.12.2021 	01:33:43 	lx 	(5. Tcp Server 2)

closing socket '81'. 	30.12.2021 	01:33:43 	lx 	(5. Tcp Server 2)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x010413ff30. 	30.12.2021 	01:33:43 	lx 	(5. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x010413ff30, size: 400. 	30.12.2021 	01:33:43 	lx 	(5. Tcp Server 2)

--- server stopped ---. 	30.12.2021 	01:33:43 	lx 	(5. Tcp Server 2)

finalizer: free p1 	 cdata<void *>: 0x010413ff30. 	30.12.2021 	01:33:43 	lx 	(5. Tcp Server 2)

Tcp server 2 stopped. 	30.12.2021 	01:33:43 	_lx_SERVER 	(5. Tcp Server 2)

Tcp server 2 starting. 	30.12.2021 	06:01:14 	_lx_SERVER 	(6. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	30.12.2021 	06:01:15 	lx 	(6. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	30.12.2021 	06:01:15 	lx 	(6. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	30.12.2021 	06:01:15 	lx 	(6. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	30.12.2021 	06:01:15 	lx 	(6. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	30.12.2021 	06:01:15 	lx 	(6. Tcp Server 2)

  database connect time: 0.0011 seconds. 	30.12.2021 	06:01:15 	lx 	(6. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	30.12.2021 	06:01:15 	lx 	(6. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	30.12.2021 	06:01:15 	lx 	(6. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	30.12.2021 	06:01:16 	lx 	(6. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01518077e0, size: 400. 	30.12.2021 	06:01:16 	lx 	(6. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	30.12.2021 	06:01:16 	lx 	(6. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	30.12.2021 	06:01:16 	lx 	(6. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	30.12.2021 	06:01:16 	lx 	(6. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	30.12.2021 	06:01:16 	lx 	(6. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	30.12.2021 	06:01:16 	lx 	(6. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	30.12.2021 	06:01:16 	lx 	(6. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	30.12.2021 	06:01:16 	lx 	(6. Tcp Server 2)

All plugins have been loaded. 	30.12.2021 	06:01:16 	lx 	(6. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	30.12.2021 	06:01:16 	lx 	(6. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	30.12.2021 	06:01:16 	lx 	(6. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	30.12.2021 	06:01:16 	lx 	(6. Tcp Server 2)

Mac address: f84d896921dc. 	30.12.2021 	06:01:16 	lx 	(6. Tcp Server 2)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	30.12.2021 	06:01:16 	lx 	(6. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/,  http://192.168.223.1:5949/,  http://172.16.153.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/, https://192.168.223.1:5949/, https://172.16.153.1:5949/. 	30.12.2021 	06:01:16 	lx 	(6. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949, 192.168.223.1:5949, 172.16.153.1:5949/. 	30.12.2021 	06:01:16 	lx 	(6. Tcp Server 2)

--- server started in 0.0056 seconds, 2021-12-30 06:01:16, used memory 3122.2 kb --- 	 5. 	30.12.2021 	06:01:16 	lx 	(6. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	30.12.2021 	06:01:16 	lx 	(6. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-30 06:02:53
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 609
Content-Uncompressed-Length: 804

LZ4. 	30.12.2021 	06:02:53 	lx 	(6. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	30.12.2021 	06:02:53 	lx 	(6. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	30.12.2021 	06:02:53 	lx 	(6. Tcp Server 2)

  database connect time: 0.0001 seconds. 	30.12.2021 	06:02:53 	lx 	(6. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	30.12.2021 	06:02:53 	lx 	(6. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	30.12.2021 	06:02:54 	_lx_ExecuteSqlNew 	(6. Tcp Server 2)

 1. answer time: 00:00:00.00836
  
SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info
 FROM company co
 WHERE co.company_id <> ''
 ORDER BY co.company_id. 	30.12.2021 	06:02:54 	lx 	(6. Tcp Server 2)

*** tcp close for sock 82, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 879 bytes ***. 	30.12.2021 	06:07:45 	lx 	(6. Tcp Server 2)

closing socket '82'. 	30.12.2021 	06:07:45 	lx 	(6. Tcp Server 2)

*** tcp close for sock 82, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	30.12.2021 	06:08:09 	lx 	(6. Tcp Server 2)

closing socket '82'. 	30.12.2021 	06:08:09 	lx 	(6. Tcp Server 2)

*** tcp close for sock 82, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	30.12.2021 	06:08:59 	lx 	(6. Tcp Server 2)

closing socket '82'. 	30.12.2021 	06:08:59 	lx 	(6. Tcp Server 2)

Date is smaller than start date. Code ID: _code_001_so_kSales_Order_ID_. 	30.12.2021 	14:35:13 	_code Reserve 	(9. Preference)

Area not found: 268435458. 	30.12.2021 	14:44:46 	_alp SEL_GET 	(9. Preference)

Area not found. 	30.12.2021 	14:44:46 	_alp ArrSize 	(9. Preference)

*** tcp close for sock 80, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	30.12.2021 	14:44:52 	lx 	(6. Tcp Server 2)

closing socket '80'. 	30.12.2021 	14:44:52 	lx 	(6. Tcp Server 2)

*** tcp close for sock 81, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	30.12.2021 	14:44:52 	lx 	(6. Tcp Server 2)

closing socket '81'. 	30.12.2021 	14:44:52 	lx 	(6. Tcp Server 2)

 -- Server statistics --
answerCount:          1
poll.fd_count:        0
pollCount:            260704
pollInCount:          4
pollOutCount:         0
pollCloseCount:       3
pollErrCount:         0
fd add/remove count:  5/5
totalBytesReceived:   879
totalBytesSent:       11967. 	30.12.2021 	14:44:52 	lx 	(6. Tcp Server 2)

--- server stopped ---. 	30.12.2021 	14:44:52 	lx 	(6. Tcp Server 2)

finalizer: free p1 	 cdata<void *>: 0x01518077e0. 	30.12.2021 	14:44:52 	lx 	(6. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	30.12.2021 	18:58:36 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	30.12.2021 	18:58:36 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	30.12.2021 	18:58:36 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	30.12.2021 	18:58:36 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	30.12.2021 	18:58:36 	lx 	(1. Application process)

  database connect time: 0.0006 seconds. 	30.12.2021 	18:58:36 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	30.12.2021 	18:58:36 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	30.12.2021 	18:58:36 	lx 	(1. Application process)

* preference 'system/nc_server_start.json', organization '0' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	30.12.2021 	18:58:36 	lx 	(1. Application process)

error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:553: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	30.12.2021 	18:58:36 	lx 	(1. Application process)

Tcp server 2 starting. 	30.12.2021 	18:58:36 	_lx_SERVER 	(5. Tcp Server 2)

Field has not been translated: [Product]Reserved. 	30.12.2021 	18:58:36 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Product]Fixed. 	30.12.2021 	18:58:36 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Product]Available. 	30.12.2021 	18:58:36 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Work_Phase_Actual]Previous_Track_Time. 	30.12.2021 	18:58:36 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Work_Order_Schedule]Can_Be_Manufactured. 	30.12.2021 	18:58:36 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

Field has not been translated: [Work_Order_Schedule]Manufacturing_State. 	30.12.2021 	18:58:36 	_lang STRUCTURE_TRANSLATE 	(6. tbl_ 5)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

  database connect time: 0.0002 seconds. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01297a8c40, size: 400. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

All plugins have been loaded. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

Mac address: f84d896921dc. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

--- server started in 0.0027 seconds, 2021-12-30 18:58:38, used memory 2994.7 kb --- 	 5. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	30.12.2021 	18:58:38 	lx 	(5. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-30 18:58:47
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 611
Content-Uncompressed-Length: 804

LZ4. 	30.12.2021 	18:58:47 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	30.12.2021 	18:58:47 	lx 	(5. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	30.12.2021 	18:58:47 	lx 	(5. Tcp Server 2)

  database connect time: 0.0002 seconds. 	30.12.2021 	18:58:47 	lx 	(5. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	30.12.2021 	18:58:47 	lx 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	30.12.2021 	18:58:47 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 1. answer time: 00:00:00.00205
  
SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info
 FROM company co
 WHERE co.company_id <> ''
 ORDER BY co.company_id. 	30.12.2021 	18:58:47 	lx 	(5. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' ORDER BY pr.product_id INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 4015, first value: ''
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	30.12.2021 	19:01:40 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 -- tcp answer 2, send result: -1, send count: 2, loop count: 2, bytes sent 163320 / 153398 remaining, total send time 11 µs. 	30.12.2021 	19:01:40 	lx 	(5. Tcp Server 2)

 -- tcp answer 2, send count: 4, loop count: 4, bytes sent 326640 / -9922 remaining, total send time 1270 µs. 	30.12.2021 	19:01:41 	lx 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	30.12.2021 	19:06:03 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	30.12.2021 	19:26:20 	lx 	(5. Tcp Server 2)

closing socket '77'. 	30.12.2021 	19:26:20 	lx 	(5. Tcp Server 2)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 881 bytes ***. 	30.12.2021 	19:26:20 	lx 	(5. Tcp Server 2)

closing socket '78'. 	30.12.2021 	19:26:20 	lx 	(5. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	30.12.2021 	19:26:24 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' ORDER BY pr.product_id INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 4015, first value: ''
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	30.12.2021 	19:28:46 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 -- tcp answer 5, send count: 4, loop count: 3, bytes sent 326640 / -8515 remaining, total send time 22 µs. 	30.12.2021 	19:28:46 	lx 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	19:47:43 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	19:47:43 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	19:47:43 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' ORDER BY pr.product_id INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 4015, first value: ''
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	30.12.2021 	19:47:52 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 -- tcp answer 9, send count: 4, loop count: 3, bytes sent 326640 / -6361 remaining, total send time 74 µs. 	30.12.2021 	19:47:53 	lx 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	19:59:29 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	19:59:29 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	19:59:30 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

